xen/domain: Fold xsm_free_security_domain() paths together
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 3 Sep 2018 11:48:13 +0000 (12:48 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 4 Sep 2018 12:25:44 +0000 (13:25 +0100)
commit2f00299e34c79e93d1f4b74444b26320a089776f
treeefbe168cd2d90334d6dea9345587e275c91757bd
parent10e042c43ecdc0d25c6fbcf5c4889dda5d226591
xen/domain: Fold xsm_free_security_domain() paths together

xsm_free_security_domain() is idempotent (both the dummy handler, and the
flask handler).  Move it into the shared __domain_destroy() path, and drop the
INIT_xsm flag from domain_create()

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/common/domain.c